#ifndef __NJGIS_NJFILE_H__
#define __NJGIS_NJFILE_H__

#include <map>
#include <string>
#include "../include/INxLocalFiles.h"

namespace NJGIS
{
	namespace SERVICE
	{
		class NjLocalFiles : public virtual INjLocalFiles
		{
		public:

			virtual int getCount();

			virtual const char* getName( int index );

			virtual const char* getPath( int index );

			virtual const char* getPath( const char* name );

			virtual int insertFile( const char* name, const char* path );

		private:
			virtual int getIterByIndex( int index, std::map<std::string, std::string>::iterator &iter );

		private:
			std::map<std::string, std::string> _mFiles;
		};

		class NjFileHelper
		{
		public:
			static INjLocalFiles* createLocalFiles();
		};
	}
}

#endif